<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>daojishi</title>
    <style type="text/css">
        * { margin: 0;
            padding: 0;
        }
        .daojishi-div-box-top {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
        }
        div {
            display: block;
            margin:auto 0;
        }
        .daojishi-div-box-top .daojishi-second-box {
            width: 455px;
            height: 187px;
            border: 8px solid #d38310;
            background-color: #244242;
            text-align: center;
            padding: 20px 80px;
            color: #ffffff;
            font-size: 14px;
            line-height: 1.8;
            margin: auto;
        }
        .daojishi-second-box p span {
            color: #eef903;
            font-weight: 600;
        }
        .daojishi-div-box-top .daojishi-second-box .title {
            font-size: 20px;
            margin-bottom: 10px;
        }
        .daojishi-div-box-top .daojishi-second-box .time {
            font-size: 35px;
            margin-top: 8px;
            color:red;
        }
    </style>
</head>
<body>
    <div class="daojishi-div-box-top">
        <div class="daojishi-second-box">
            <p class="title">2025年考研倒计时</p>
            <p>2025全国硕士研究生初试时间:<span>2024年12月23日至24日</span><br>(考试时间超过3小时的考试科目，安排在12月25日)<br>目前距离2025年考研倒计时还有</p>
            <p class="time" id="daojishi"></p>
        </div>
</div>
<script type="text/javascript">
    function getRTime(){
      var EndTime= new Date('2024/12/23 09:00:00'); //截止时间
      var NowTime = new Date();
      var t =EndTime.getTime() - NowTime.getTime();
      var d=Math.floor(t/1000/60/60/24);
      var h=Math.floor(t/1000/60/60%24);
      var m=Math.floor(t/1000/60%60);
      var s=Math.floor(t/1000%60);
      if(m<10){m='0'+ m};
      if(s<10){s='0'+ s};
      document.getElementById("daojishi").innerHTML = d + " 天" + h + " 时" + m + " 分" + s + " 秒";
    }
  setInterval(getRTime,1000);
</script>
</body>
</html>